<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Slardar script test</title>

  <script type="text/javascript">

    window.loadScript = function (url, callback) {
      var script = document.createElement('script');
      var head = document.head;
      if (callback) {
        script.addEventListener('load', callback);
      }
      script.src = url;
      script.async = true;
      script.crossOrigin = 'anonymous';
      head.insertBefore(script, head.firstChild);
    };
  </script>
  <script type="text/javascript">
    window.loadLink = function (url, callback) {
      var link = document.createElement('link');
      var head = document.head;
      if (callback) {
        link.addEventListener('load', callback);
      }
      link.href = url;
      link.rel = "stylesheet"
      link.type = "text/css"
      head.insertBefore(link, head.firstChild);
    };
  </script>
</head>

<body>
  <h2>Hello World</h2>
  <div id="app"></div>
</body>

</html>
